// Author     : Leo King
// CreateDate : 2014/6/3 10:44:01
// CopyRight  : CopyRight @lktec 2013~2015
// Site       : http://www.lktec.cn
// Version    : 1.0.0.1

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Serialization;

namespace yc.Dal
{
	/// <summary>
	/// 系统会员
	/// </summary>
	public partial class SysClient
	{
		#region 初始化
		public SysClient()
		{
			this.SysClientWorking = new List<SysClientWorking>();
			this.SysClientTraining = new List<SysClientTraining>();
			this.SysClientBlockHistory = new List<SysClientBlockHistory>();
		}
		#endregion

		#region 基本属性

		/// <summary>
		/// 系统编号
		/// </summary>
		[Display(Name = "系统编号")]
		[Key, ScaffoldColumn(false)]
		public long ID { get; set; }

		/// <summary>
		/// 会员编号
		/// </summary>
		[Display(Name = "会员编号")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string SysNo { get; set; }

		/// <summary>
		/// 会员名
		/// </summary>
		[Display(Name = "会员名")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string Name { get; set; }

		/// <summary>
		/// 性别
		/// </summary>
		[Display(Name = "性别")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string Gender { get; set; }

		/// <summary>
		/// 出生年月
		/// </summary>
		[Display(Name = "出生年月")]
		public Nullable<System.DateTime> Birthday { get; set; }

		/// <summary>
		/// 民族
		/// </summary>
		[Display(Name = "民族")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string Ethnic { get; set; }

		/// <summary>
		/// 省
		/// </summary>
		[Display(Name = "省")]
		public Nullable<int> ProvinceSysNo { get; set; }

		/// <summary>
		/// 市
		/// </summary>
		[Display(Name = "市")]
		public Nullable<int> CitySysNo { get; set; }

		/// <summary>
		/// 联系电话
		/// </summary>
		[Display(Name = "联系电话")]
		[StringLength(100, ErrorMessage = "{0}长度不能大于{1}")]
		public string Telphone { get; set; }

		/// <summary>
		/// 最近工作
		/// </summary>
		[Display(Name = "最近工作")]
		[StringLength(100, ErrorMessage = "{0}长度不能大于{1}")]
		public string LastWork { get; set; }

		/// <summary>
		/// 个人介绍
		/// </summary>
		[Display(Name = "个人介绍")]
		[StringLength(500, ErrorMessage = "{0}长度不能大于{1}")]
		public string Description { get; set; }

		/// <summary>
		/// 体重
		/// </summary>
		[Display(Name = "体重")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string BodyWeight { get; set; }

		/// <summary>
		/// 身高
		/// </summary>
		[Display(Name = "身高")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string Height { get; set; }

		/// <summary>
		/// 身份证号
		/// </summary>
		[Display(Name = "身份证号")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string IdNo { get; set; }

		/// <summary>
		/// 户籍地址
		/// </summary>
		[Display(Name = "户籍地址")]
		[StringLength(100, ErrorMessage = "{0}长度不能大于{1}")]
		public string IdAddr { get; set; }

		/// <summary>
		/// 现住地址
		/// </summary>
		[Display(Name = "现住地址")]
		[StringLength(100, ErrorMessage = "{0}长度不能大于{1}")]
		public string Address { get; set; }

		/// <summary>
		/// 婚姻状况
		/// </summary>
		[Display(Name = "婚姻状况")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Marriage { get; set; }

		/// <summary>
		/// 视力
		/// </summary>
		[Display(Name = "视力")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Vision { get; set; }

		/// <summary>
		/// 最高学历
		/// </summary>
		[Display(Name = "最高学历")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Education { get; set; }

		/// <summary>
		/// 专业
		/// </summary>
		[Display(Name = "专业")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Professional { get; set; }

		/// <summary>
		/// 期望薪资
		/// </summary>
		[Display(Name = "期望薪资")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Salery { get; set; }

		/// <summary>
		/// 接受加班
		/// </summary>
		[Display(Name = "接受加班")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string Overtime { get; set; }

		/// <summary>
		/// 工作地点
		/// </summary>
		[Display(Name = "工作地点")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Workplace { get; set; }

		/// <summary>
		/// 工作方式
		/// </summary>
		[Display(Name = "工作方式")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string WayOfWorking { get; set; }

		/// <summary>
		/// 休息方式
		/// </summary>
		[Display(Name = "休息方式")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string WayOfRelaxing { get; set; }

		/// <summary>
		/// 在职状态
		/// </summary>
		[Display(Name = "在职状态")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string WorkStatue { get; set; }

		/// <summary>
		/// 工作经验
		/// </summary>
		[Display(Name = "工作经验")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string WorkExpress { get; set; }

		/// <summary>
		/// 毕业院校
		/// </summary>
		[Display(Name = "毕业院校")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Graduate { get; set; }

		/// <summary>
		/// 个人邮箱
		/// </summary>
		[Display(Name = "个人邮箱")]
		[StringLength(100, ErrorMessage = "{0}长度不能大于{1}")]
		public string Email { get; set; }

		/// <summary>
		/// 工作种类
		/// </summary>
		[Display(Name = "工作种类")]
		[StringLength(100, ErrorMessage = "{0}长度不能大于{1}")]
		public string TypeOfWorking { get; set; }

		/// <summary>
		/// 技能证书
		/// </summary>
		[Display(Name = "技能证书")]
		[StringLength(100, ErrorMessage = "{0}长度不能大于{1}")]
		public string Certifcate { get; set; }

		/// <summary>
		/// 英语等级
		/// </summary>
		[Display(Name = "英语等级")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string EnglishLvl { get; set; }

		/// <summary>
		/// 计算机等级
		/// </summary>
		[Display(Name = "计算机等级")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string ComputerLvl { get; set; }

		/// <summary>
		/// 会员等级
		/// </summary>
		[Display(Name = "会员等级")]
		public int ClientLvl { get; set; }

		/// <summary>
		/// 黑名单用户
		/// </summary>
		[Display(Name = "黑名单用户")]
		public bool Blocked { get; set; }

		/// <summary>
		/// 创建日期
		/// </summary>
		[Display(Name = "创建日期")]
		public Nullable<System.DateTime> CreateDate { get; set; }

		#endregion

		#region 复合属性
		/// <summary>
		/// 工作经历
		/// </summary>
		[ForeignKey("CID")]
		public virtual List<SysClientWorking> SysClientWorking { set; get; }

		/// <summary>
		/// 培训经历
		/// </summary>
		[ForeignKey("CID")]
		public virtual List<SysClientTraining> SysClientTraining { set; get; }

		/// <summary>
		/// 系统会员黑名单记录
		/// </summary>
		[ForeignKey("ClientID")]
		public virtual List<SysClientBlockHistory> SysClientBlockHistory { set; get; }

		#endregion
	}
}
